package top.dopen.demo;

import com.apidoc.common.Const;
import com.apidoc.utis.StringUtil;
import org.junit.Test;

import java.util.Map;

public class StringUtilDemo {
	@Test
	public void fun1(){
		Const.codePath = "C:\\workspace\\WebRoot\\Generator\\src\\test\\java\\";
		Map<String, String> fieldsNotes = StringUtil.getMethodNotes("top.dopen.controller.ActivityController");
		fieldsNotes.forEach((k,v)->{
			System.out.println("key:"+k +"  value:" +v);
		});
	}
	@Test
	public void fun2(){
		Const.codePath = "C:\\workspace\\WebRoot\\Generator\\src\\test\\java\\";
		Map<String, String> fieldsNotes = StringUtil.getFieldsNotes("top.dopen.entity.Activity");
		fieldsNotes.forEach((k,v)->{
			System.out.println("key:"+k +"  value:" +v);
		});
	}
}
